<%-- 
    Document   : bitacora
    Created on : 01-mar-2012, 8:35:42
    Author     : Daniel
--%>

<%@page import="escom.ipn.modelo.delegate.BitacoraDelegate"%>
<%@page import="java.util.List"%>
<%@page import="escom.ipn.modelo.dto.Bitacora"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>bitacora</title>
    </head>
    <body>
        <script type="text/javascript">
           /* $(document).ready(function() {

                var itablaB=document.getElementById('tbitacora');
                $(itablaB).dataTable({ "aaSorting": [[ 0, "desc" ]]} );
                $('.iframe').colorbox({iframe:true,scrolling:true, width:"80%", height:"88%", onLoad : function() { 
                $(this).colorbox.resize(); 
            }
                });
            } );*/
        </script>
        
        <%--INICIO MOSTAR BITACORA--%>
                         <%
                         HttpSession sess = request.getSession(true);
                         Bitacora bit = new Bitacora();
                         BitacoraDelegate delbit = new BitacoraDelegate();
                         bit.setId_incidente(Integer.parseInt(sess.getAttribute("idIncidente").toString()));
                         //bit.setId_incidente(185);
                         List bitacora = delbit.desplegarPorId(bit);
                         if(bitacora != null){
            
                         %> 
                         
                         <table id="tbitacora" class="rounded-corner" style="width: 100%">
                            <thead>
                                <tr>
                                    <th scope="col" >Fecha</th>
                                    <th scope="col" >Observacion</th>
                                </tr>
                            </thead>
                            <tfoot>
                                <tr>
                                        <td colspan="1" class="rounded-foot-left">
                                            <em>Bitacora de Incidente</em></td>
                                        <td class="rounded-foot-right">&nbsp;</td>
                                </tr>
                            </tfoot>
                            <tbody>
                                <%for (int k = 0; k < bitacora.size(); k++) {
                                    Bitacora actualizacion = (Bitacora) bitacora.get(k);%>
                                    <tr>
                                        <td><%=actualizacion.getFecha() %></td>
                                        <td><%=actualizacion.getObservacion() %></td>
                                    </tr>
                               <%}%>
                            </tbody>
                          </table>
                           
                        <%}%>
                      <%--FIN MOSTRAR BITACORA--%>
    </body>
</html>
